package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.educational.entity.DiscountRule;
import com.yuyou.fn.educational.vo.DiscountRuleQueryVo;
import com.yuyou.fn.educational.vo.DiscountRuleSaveOrUpdateVo;

import java.util.List;

/**
 *
 * DiscountRule 表数据服务层接口
 *
 */
public interface IDiscountRuleService extends ISuperService<DiscountRule,Long> {


    Page<DiscountRule> findDiscountRuleByQuery(DiscountRuleQueryVo discountRuleQueryVo, int pageNo, int pageSize);

    void saveOrUpdateRule(DiscountRuleSaveOrUpdateVo discountRuleSaveOrUpdateVo);


    List<DiscountRule> findAll();

    void deleteRule(Long discountRuleId);

    String testRule(Long discountRuleId, String params, String testData );
}